package com.souku.finance.application.ui.mine;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.souku.finance.application.R;
import com.souku.finance.application.base.BaseActivity;
import com.souku.finance.application.utils.ViewUtil;

/**
 * Created by Android on 2016/12/19.
 */

public class BindCardActivity extends BaseActivity implements View.OnClickListener {

    protected RelativeLayout topBack;
    protected TextView topTitle;
    protected EditText etCard;
    protected ImageView ivDelet;
    protected EditText etBankcard;
    protected ImageView ivDelet1;

    @Override
    public void internet() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.setContentView(R.layout.act_bindcard);
        initView();
        ViewUtil.setDelete(etCard,ivDelet,null);
        ViewUtil.setDelete(etBankcard,ivDelet1,null);
        topTitle.setText("绑定银行卡");
    }

    @Override
    public void onClick(View view) {
        if (view.getId() == R.id.top_back) {
            finish();
        }
    }

    private void initView() {
        topBack = (RelativeLayout) findViewById(R.id.top_back);
        topBack.setOnClickListener(BindCardActivity.this);
        topTitle = (TextView) findViewById(R.id.top_title);
        etCard = (EditText) findViewById(R.id.et_card);
        ivDelet = (ImageView) findViewById(R.id.iv_delet);
        etBankcard = (EditText) findViewById(R.id.et_bankcard);
        ivDelet1 = (ImageView) findViewById(R.id.iv_delet1);
    }
}
